home *** CD-ROM | disk | FTP | other *** search
/ Ian & Stuart's Australian Mac 1993 September / September 93.iso / Archives / Utilities / Text / Easy Convert 3.0 / Read me (Plain text) < prev    next >
Text File  |  1993-02-14  |  9KB  |  186 lines

  1. Introduction
  2.  
  3. Easy Convert is a small application for character conversion in texts. Since it does the conversion on the target itself, it works very fast. (About 50K per second on a IIsi)
  4.  
  5. There are three basic modes of use:
  6. 1) Convert a plain text file
  7. 2) Convert the text in the clipboard
  8. 3) Make and edit filters to be used in conversion
  9.    (Also useful in Easy View and related applications)
  10.  
  11. Various tasks that are simplified by Easy Convert:
  12. * Conversion to uppercase or lowercase
  13. * Simple encryption for protecting documents
  14. * Elimination of diacritical marks such as accents
  15. * Conversion of 8-bit text into 7-bit text for e-mail
  16. * Conversion of files from unix or MS-DOS
  17.  
  18. Although there are similar programs with better user interface, this program may be unique in its ability to convert the clipboard. The high speed and the wide range of compatibility may also be the reasons for preference.
  19.  
  20. -------------
  21. What is a Filter?
  22.  
  23. Filters used by Easy Convert are character tables that define the conversion process. Each of the 256 characters can be assigned a value. The assigned value will be used in the conversion process.
  24.  
  25. As a simple example, consider a filter with three assignments:
  26.          A » X      a » A       m » z
  27.  
  28. When applied on two words, we get:
  29.          Adam » XdAz       maze » zAze
  30.  
  31. -------------
  32. CAUTION
  33.  
  34. “Convert…” command will modify the selected file using the current filter, without asking the user. Unless the filter is invertible, the contents of the file will be changed in an irreversible way. This process cannot be interrupted or reverted.
  35.  
  36. ** APPLY THIS COMMAND ONLY ON FILES WITH A BACKUP COPY **
  37.  
  38. It is very easy to corrupt a file using the wrong filter. Do not use this command before you are familiar with the application and the filter in use.
  39.  
  40. -------------
  41. Author
  42.  
  43. Written by M. Akif Eyler
  44. Bilkent University, 06533 Ankara, Turkey.
  45.  
  46. e-mail: eyler@trbilun.bitnet
  47.  
  48. PLEASE DO NOT COMPLAIN IF YOU LOSE ANY DATA BECAUSE OF THIS PROGRAM. 
  49. YOU HAVE BEEN WARNED A FEW TIMES ALREADY.
  50.  
  51. Special thanks to Ömer Ayzan, for the support and ideas in the earlier versions (1988) of Easy Convert.
  52.  
  53. This program can be distributed freely, for non-commercial purposes, along with the enclosed documents. It may not be sold or exchanged for profit.
  54.  
  55. The program was developed using Think Pascal 4.0.1, as such it may contain portions copyrighted by Symantec.
  56.  
  57. -------------
  58. Getting Started
  59.  
  60. First, make a copy of a sample text file. Open Easy Convert. “Encode” should be checked in the Filter menu. Choose “Convert…” from the File menu. Select the previously copied file. When the watch cursor disappears, open that file with an editor. The file has become unreadable!
  61.  
  62. Now, choose “Convert…” again, selecting the same file. The file should be reverted to its previous contents.
  63.  
  64. Note that this is a special property of the “Encode” filter. With other filters, you will not be able to get back the original contents. Now select the last filter from the menu and repeat the process: your file has been converted to uppercase. (No computer program can put the file into the original form, it is gone forever!)
  65.  
  66. To get a feeling of the second tool, copy some text in Finder or an editor. Switch to Easy Convert and choose “Convert Clipboard” from the Edit menu. Go back to Finder and see the contents of the clipboard.
  67.  
  68. -------------
  69. Mathematical Definitions
  70.  
  71. Let C denote the ASCII character set from chr(0) to chr(255).
  72.  
  73. A _filter_ is a function f from C to C.
  74.  
  75. I is the _unit_filter_ that maps each char to itself.
  76.  
  77. Filter f is _invertible_ if it is unto.
  78.  
  79. Filter f has a _self-inverse_ if f^2=I.
  80.  
  81. Filter f is _n-circular_ if f^n=I.
  82.  
  83. Clearly, only a very tiny subset of all possible filters will be invertible. 
  84. Remember:  k! « k^k  for k=256.
  85.  
  86. *************
  87. How to Use EC
  88.  
  89. There are three basic modes of use:
  90. 1) Convert a plain text file
  91. 2) Convert the text in the clipboard
  92. 3) Make and edit filters to be used in conversion
  93.  
  94. File and Edit menus behave in the standard way. At most one file can be open at time, and its filters can be used or edited. Applications (APPL) and filter files (FLTR) can be opened.
  95.  
  96. Various Save commands will save only the current filter: “Save” in the current file, “Save As…” in a new file, and “Save In…” in an existing file.
  97.  
  98. Only Cut and Clear commands of the Edit menu are enabled. “Cut” will remove the current filter, without putting it in the clipboard. The last filter in a file cannot be removed.
  99.  
  100. -------------
  101. Convert…
  102.  
  103. ** APPLY THIS COMMAND ONLY ON FILES WITH A BACKUP COPY **
  104.  
  105. This command will let the user select a text file. The selected file will be modified using the current filter.
  106.  
  107. THERE IS NO WAY TO INTERRUPT OR REVERT THIS PROCESS.
  108.  
  109. This unsafe behavior was selected on purpose, for three reasons:
  110. 1) It is significantly faster than writing into a new file
  111. 2) The Finder info and other resources (if any) are preserved
  112. 3) We already have a backup somewhere, why waste disk space?
  113.  
  114. -------------
  115. Convert Clipboard
  116.  
  117. This command will convert the text in the clipboard. This is the recommended way to make conversions in formatted data, such as Excel’s. Any time the little Clipboard window is made active, the clipboard is converted automatically. However, a converted clipboard will not be converted again, even if the filter is changed.
  118.  
  119. Here is the recipe for making conversions in sequence:
  120. 1) Select the proper filter and choose “Convert Clipboard” menu command. The little Clipboard window will be shown.
  121. 2) Switch to the application (e.g. Excel).
  122. 3) Select and copy some data (at most a few pages).
  123. 4) Switch to Easy Convert. _Don’t do anything._
  124. 5) Switch back to the application and choose Paste command. The original selection will be replaced by converted data. 
  125. Repeat steps 3-5 as many times as necessary.
  126.  
  127. -------------
  128. Design Filter
  129.  
  130. When you choose “Edit Filter” command, the current filter is presented in a tabular form. The black squares indicate the assignments. For instance, the “A » X” conversion can be obtained by dragging “X” into “A”. A black “X” will appear where “A” should be. 
  131.  
  132. Dragging a white square will add/replace new assignments. Dragging a black square out of the window will clear an assignment. Multiple selections are not allowed. Modifier keys are not functional.
  133.  
  134. -------------
  135. Compatibility
  136.  
  137. The first version of this program was written in 1988 on a Mac Plus using Turbo Pascal. The current version has basically the same conversion routines unmodified. The user interface has been enhanced significantly, without losing compatibility.
  138.  
  139. Easy Convert should work on all Macs with 1986 ROM’s, i.e. Mac 512K and up, using System 3.x all the way to 7.x.
  140.  
  141. *************
  142. Standard Filters
  143.  
  144. “Standard Filters” must be in the same folder for proper utilisation. This file contains the default filter Encode, 3 filters for searching, and one for uppercase conversion.
  145.  
  146. Filters are always accessed by name, resource numbers are never used or shown to the user. If two filters have the same name, the first will be used.
  147.  
  148. These filters should be sufficient for most uses. Another file of filters is included to illustrate how it could be utilized to solve problems of another language.
  149.  
  150. -------------
  151. Encode
  152.  
  153. This is the only invertible filter in the package, thus it is quite safe to use. (Actually, the inverse filter is itself. Converting a given text _twice_ with this filter will result in the original text) This is the reason why it is the default filter on startup.
  154.  
  155. This filter gives you very efficient protection on the sensitive parts of your documents.: just copy the portion that you want to encode, choose “Convert Clipboard”, switch back to the application, and paste the encoded data. It is not the best method to protect data, but quite satisfactory for many needs.
  156.  
  157. Another possible usage might be in electronic communication, where the parties first choose a common filter, and then use partial or complete encryption.
  158.  
  159. Stronger encryption can be obtained by using control characters in the assignments. The use of 3-circular filters may also increase the level of protection. However, the use of 3-circular filters is not practical on the clipboard.
  160.  
  161. -------------
  162. Search Filters
  163.  
  164. These filters are used by Easy View (to be released in April 93) search engine.
  165.  
  166. • E » e •  Ignore differences between lowercase and uppercase
  167.  
  168. • ê » e •  Ignore diacritical marks, such as accents
  169.  
  170. • É » e •  Ignore case differences _and_ diacritical marks
  171.  
  172. -------------
  173. Uppercase
  174.  
  175. ◊ i » I ◊  This is a simple uppercase filter which converts each letter (including those with diacritical marks) into the corresponding uppercase letter.
  176.  
  177. -------------
  178. Turkish Filters
  179.  
  180. The main source of difficulty in Turkish is “I” and “i” being distinct letters. The diacritical marks are also handled in a non-standard way: “c” and “ç” are different letters, but “i” and “î” are the same.
  181.  
  182. All filters explained above have corresponding filters for Turkish.
  183. Also included are two special filters for conversion of Turkish letters between Mac and PC.
  184.  
  185. *************
  186.